"""

@name:python学习
@author:yuki
@projectname:起步

"""
import random
import string
with open("activation_code.txt", "w")as code:
    while True:
        N = input("please input the number:")
        if N.isdecimal():
            break
        else:
            print("your input is not right")
    for i in range(int(N)):
        pwd = ''.join(random.sample(string.ascii_letters + string.digits, 32))
        with open("activation_code.txt","a+") as code:
            code.write(f"{pwd}\n")
